package com.ourteam.education.domain;
/**
 * Template Name : DTO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 30 16:49:33 CST 2018
 * Auto Generate Date : 2019-09-22 15:15:25
  * Warning ! This file will be overwrite when regenerate !
  * 
 */

import java.util.Map;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.beanutils.BeanMap;
import net.dao.IDataPopulateCallback;


public class TeacherBean implements java.io.Serializable {

        
	private static Map<String,String> mappedDaoFields = new HashMap<String,String>();
    
	private com.ourteam.education.dao.Teacher teacher;

	protected BeanMap getBeanMap(){
	
		return new BeanMap(teacher);
	}
	
	static{
				
												
		mappedDaoFields.put("id",com.ourteam.education.dao.ITeacherDAO.Id);
		
																																																		
				
																
		mappedDaoFields.put("teacherName",com.ourteam.education.dao.ITeacherDAO.TeacherName);
		
																																														
				
																				
		mappedDaoFields.put("teacherGender",com.ourteam.education.dao.ITeacherDAO.TeacherGender);
		
																																										
				
																								
		mappedDaoFields.put("teacherBirthday",com.ourteam.education.dao.ITeacherDAO.TeacherBirthday);
		
																																						
				
																												
		mappedDaoFields.put("contactPhone",com.ourteam.education.dao.ITeacherDAO.ContactPhone);
		
																																		
				
																																
		mappedDaoFields.put("contactsRelation",com.ourteam.education.dao.ITeacherDAO.ContactsRelation);
		
																														
				
																																				
		mappedDaoFields.put("idCardType",com.ourteam.education.dao.ITeacherDAO.IdCardType);
		
																										
				
																																								
		mappedDaoFields.put("idCardNum",com.ourteam.education.dao.ITeacherDAO.IdCardNum);
		
																						
				
																																												
		mappedDaoFields.put("sysAccountId",com.ourteam.education.dao.ITeacherDAO.SysAccountId);
		
																		
				
																																																
		mappedDaoFields.put("deleteFlag",com.ourteam.education.dao.ITeacherDAO.DeleteFlag);
		
														
				
																																																				
		mappedDaoFields.put("status",com.ourteam.education.dao.ITeacherDAO.Status);
		
										
				
																																																								
		mappedDaoFields.put("remarks",com.ourteam.education.dao.ITeacherDAO.Remarks);
		
						
				
				
	}
	
	public static String getMappedDAOField(String aAttrName){
		return mappedDaoFields.get(aAttrName);
	}
	
	
	public TeacherBean() {
		super();
	    		
		this.teacher = new com.ourteam.education.dao.Teacher();
                
	}
	
		
	public TeacherBean(com.ourteam.education.dao.Teacher teacher) {
		super();
	
		this.teacher = teacher;
		
	}
		
		
		
    	
	public com.ourteam.education.dao.Teacher convertToTeacher(){
		return this.teacher;
	}
	
	public com.ourteam.education.dao.Teacher convertTo(){
		return this.teacher;
	}
	
			
		
			
			
		
	/**
	 * Get id
	 * 
	 * @return long
	 */
	public long getId(){
		return (long) this.teacher.getId();
	}
	
	/**
	 * Set id
	 * 
	 * @parameter long
	 */
	public void setId(long id){
		
		this.teacher.setId(id);
	}
		
																									
		
		
					
			
		
	/**
	 * Get teacherName
	 * 
	 * @return String
	 */
	public String getTeacherName(){
		return (String) this.teacher.getTeacherName();
	}
	
	/**
	 * Set teacherName
	 * 
	 * @parameter String
	 */
	public void setTeacherName(String teacherName){
		
		this.teacher.setTeacherName(teacherName);
	}
		
																							
		
		
							
			
		
	/**
	 * Get teacherGender
	 * 
	 * @return String
	 */
	public String getTeacherGender(){
		return (String) this.teacher.getTeacherGender();
	}
	
	/**
	 * Set teacherGender
	 * 
	 * @parameter String
	 */
	public void setTeacherGender(String teacherGender){
		
		this.teacher.setTeacherGender(teacherGender);
	}
		
																					
		
		
									
			
		
	/**
	 * Get teacherBirthday
	 * 
	 * @return java.util.Date
	 */
	public java.util.Date getTeacherBirthday(){
		return (java.util.Date) this.teacher.getTeacherBirthday();
	}
	
	/**
	 * Set teacherBirthday
	 * 
	 * @parameter java.util.Date
	 */
	public void setTeacherBirthday(java.util.Date teacherBirthday){
		
		this.teacher.setTeacherBirthday(teacherBirthday);
	}
		
																			
		
		
											
			
		
	/**
	 * Get contactPhone
	 * 
	 * @return String
	 */
	public String getContactPhone(){
		return (String) this.teacher.getContactPhone();
	}
	
	/**
	 * Set contactPhone
	 * 
	 * @parameter String
	 */
	public void setContactPhone(String contactPhone){
		
		this.teacher.setContactPhone(contactPhone);
	}
		
																	
		
		
													
			
		
	/**
	 * Get contactsRelation
	 * 
	 * @return String
	 */
	public String getContactsRelation(){
		return (String) this.teacher.getContactsRelation();
	}
	
	/**
	 * Set contactsRelation
	 * 
	 * @parameter String
	 */
	public void setContactsRelation(String contactsRelation){
		
		this.teacher.setContactsRelation(contactsRelation);
	}
		
															
		
		
															
			
		
	/**
	 * Get idCardType
	 * 
	 * @return String
	 */
	public String getIdCardType(){
		return (String) this.teacher.getIdCardType();
	}
	
	/**
	 * Set idCardType
	 * 
	 * @parameter String
	 */
	public void setIdCardType(String idCardType){
		
		this.teacher.setIdCardType(idCardType);
	}
		
													
		
		
																	
			
		
	/**
	 * Get idCardNum
	 * 
	 * @return String
	 */
	public String getIdCardNum(){
		return (String) this.teacher.getIdCardNum();
	}
	
	/**
	 * Set idCardNum
	 * 
	 * @parameter String
	 */
	public void setIdCardNum(String idCardNum){
		
		this.teacher.setIdCardNum(idCardNum);
	}
		
											
		
		
																			
			
		
	/**
	 * Get sysAccountId
	 * 
	 * @return long
	 */
	public long getSysAccountId(){
		return (long) this.teacher.getSysAccountId();
	}
	
	/**
	 * Set sysAccountId
	 * 
	 * @parameter long
	 */
	public void setSysAccountId(long sysAccountId){
		
		this.teacher.setSysAccountId(sysAccountId);
	}
		
									
		
		
																					
			
		
	/**
	 * Get deleteFlag
	 * 
	 * @return int
	 */
	public int getDeleteFlag(){
		return (int) this.teacher.getDeleteFlag();
	}
	
	/**
	 * Set deleteFlag
	 * 
	 * @parameter int
	 */
	public void setDeleteFlag(int deleteFlag){
		
		this.teacher.setDeleteFlag(deleteFlag);
	}
		
							
		
		
																							
			
		
	/**
	 * Get status
	 * 
	 * @return String
	 */
	public String getStatus(){
		return (String) this.teacher.getStatus();
	}
	
	/**
	 * Set status
	 * 
	 * @parameter String
	 */
	public void setStatus(String status){
		
		this.teacher.setStatus(status);
	}
		
					
		
		
																									
			
		
	/**
	 * Get remarks
	 * 
	 * @return String
	 */
	public String getRemarks(){
		return (String) this.teacher.getRemarks();
	}
	
	/**
	 * Set remarks
	 * 
	 * @parameter String
	 */
	public void setRemarks(String remarks){
		
		this.teacher.setRemarks(remarks);
	}
		
			
		
			
			
			
			
			
			
			
			
			
			
			
			
			
					
	private long[] campusIdList ;
	
	/**
	 * Get campusIdList
	 * 
	 * @return long[]
	 */
	public long[] getCampusIdList(){
			
	    return this.campusIdList;
			
	}
	
	/**
	 * Set campusIdList
	 * 
	 * @parameter long[]
	 */
	public void setCampusIdList(long[] campusIdList){
			
		this.campusIdList = campusIdList;
		
	}
	
		
			
	
	public int hashCode() {
   		return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
 	}
	
		
	public boolean equals(Object obj) {
		if (obj == null) {
            return false;
        } // end if

        if ((obj instanceof TeacherBean) == false) {
            return false;
        } // end if

        TeacherBean other = (TeacherBean) obj;
        
        boolean isEqual = false;
        
                
        com.ourteam.education.dao.Teacher tempTeacher = other.convertToTeacher();
        
        if(tempTeacher == null || this.teacher == null){
        	isEqual = false;
        }
        else if(tempTeacher == this.teacher || tempTeacher.equals(this.teacher) ){
        	isEqual = true;
        }
        else{
        	isEqual = false;
        }
        
        return isEqual;
	}
	
	
	public static TeacherBean[] toArray(com.ourteam.education.dao.Teacher[] aTeachers){
		
		return toArray(aTeachers,null);
	}
	
	public static TeacherBean[] toArray(com.ourteam.education.dao.Teacher[] aTeachers , IDataPopulateCallback aCallBack){
		 
		 if(ArrayUtils.isEmpty(aTeachers)){
		 	return new TeacherBean[0];
		 }
		 
		 int length = aTeachers.length;
		 
		 TeacherBean[] beans = new TeacherBean[length];
		  
		 for (int i = 0; i < length; i++) {
			beans[i] = new TeacherBean(aTeachers[i]);
			if(aCallBack != null){
			    aCallBack.populate(beans[i],new Object[]{aTeachers[i]});
			}
		 }
		 
		 return beans;
	 }
	 
	 	 
}